package com.heima.admin.controller.v1;


import com.heima.admin.service.AdminService;
import com.heima.apis.user.IUserClient;
import com.heima.model.common.dtos.PageResponseResult;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.user.dtos.AuthDto;
import com.heima.user.service.ApUserRealnameService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping( "/api/v1/auth")
public class ScanController {
    @Autowired
    private AdminService adminService;


    @PostMapping("/list")
    public ResponseResult userScan(@RequestBody AuthDto dto) {
        return adminService.userScan(dto);
    }


    @PostMapping("/authFail")
    public ResponseResult failScan(@RequestBody AuthDto dto) {
        return adminService.failScan(dto);
    }

    @PostMapping("/authPass")
    public ResponseResult passScan(@RequestBody AuthDto dto) {

        return adminService.passScan(dto);
    }
}
